using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace Healinker.Entities
{    
    public partial class DiseaseClass
    {
        [Key]
        public int Id { get; set; }

        [ForeignKey("ParentDiseaseClass")]
        public int ParentId { get; set; }

        [Required, StringLength(255)]
        public string Name { get; set; }

        [Required]
        public int Order { get; set; }

        [Required, StringLength(100)]
        public string CodeScope { get; set; }
        
        [Required, ForeignKey("CodeClass")]
        public int CodeClassId { get; set; }

        [Required, StringLength(50)]
        public string QueryCode { get; set; }
    
        public virtual CodeClass CodeClass { get; set; }
        public virtual DiseaseClass ParentDiseaseClass { get; set; }
        public virtual ICollection<Disease> Diseases { get; set; }
    }
}
